@import 'prismjs/themes/prism-okaidia.css';
.c2d {
    width: 100%;
    height: 100%;
    display: inline-flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}
.c2d>* {
    outline: none;
}
.c2d>.c2d-left {
    flex-shrink: 0;
    width: 400px;
    background-color: white;
}
.c2d>.c2d-right {
    flex-shrink: 0;
    width: 400px;
    background-color: white;
    position: absolute;
    right: 0;
}

/*文档样式*/
.c2d>.c2d-doc {
    background-color: white;
    padding: 20px 400px 20px 20px;
    flex: 1;
}
.c2d>.c2d-doc>p>h1:before, .c2d>.c2d-doc>p>h2:before, .c2d>.c2d-doc>p>h3:before, .c2d>.c2d-doc>p>h4:before, .c2d>.c2d-doc>p>h5:before, .c2d>.c2d-doc>p>h6:before {
    content:attr(num);
    padding-right: 5px;
}
.c2d>.c2d-doc>p>h1[err]:before,
.c2d>.c2d-doc>p>h2[err]:before,
.c2d>.c2d-doc>p>h3[err]:before,
.c2d>.c2d-doc>p>h4[err]:before,
.c2d>.c2d-doc>p>h5[err]:before,
.c2d>.c2d-doc>p>h6[err]:before {
    content:attr(err);
    background-color: red;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 3px;
}
.c2d>.c2d-doc>* {
    padding: 0;
    border-radius: 5px;
}
.c2d>.c2d-doc>.resize-point {
    border-radius: 50%;
    background-color: white;
}
.c2d>.c2d-doc>*:first-child {
    margin-top: 0;
}
.c2d>.c2d-doc h1 {
    font-size: 1.5em;
    font-weight: 500;
}
.c2d>.c2d-doc h2 {
    font-size: 1.3em;
    font-weight: 500;
}
.c2d>.c2d-doc h3 {
    font-size: 1.17em;
    font-weight: 500;
}
.c2d>.c2d-doc h4 {
    font-size: 1em;
    font-weight: 500;
}
.c2d>.c2d-doc h5 {
    font-size: 0.83em;
    font-weight: 500;
}
.c2d>.c2d-doc h6 {
    font-size: 0.67em;
    font-weight: 500;
}
.c2d>.c2d-doc p, .c2d>.c2d-doc span {
    font-size: 1em;
    font-weight: 0;
}

.c2d>.c2d-doc img {
    max-width: 95%;
}
.c2d>.c2d-doc table {
    max-width: 95%;
    border-spacing: 0;
}
.c2d>.c2d-doc table p{
    margin: 5px 10px;
}
.c2d>.c2d-doc table, .c2d>.c2d-doc th, .c2d>.c2d-doc td {
    border: 1px solid #DCDFE6;
}

/*目录样式*/
.c2d-list {
    padding: 20px;
}
.c2d-list>p {
    margin: 5px 0;
}
.c2d-list>p>*:before {
    content:attr(num);
    padding-right: 5px;
}
.c2d-list>p>*[err]:before {
    content:attr(err);
    background-color: red;
    color: white;
    padding: 2px 5px;
    border-radius: 3px;
    margin-right: 3px;
}
.c2d-list h1, .c2d-list h2, .c2d-list h3, .c2d-list h4, .c2d-list h5, .c2d-list h6 {
    cursor: pointer;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 400;
}
.c2d-list h1 {
    font-size: 1.2em;
}
.c2d-list h2 {
    font-size: 1em;
    padding-left: 20px;
}
.c2d-list h3 {
    font-size: 0.8em;
    padding-left: 30px;
}
.c2d-list h4 {
    font-size: 0.75em;
    padding-left: 40px;
}
.c2d-list h5 {
    font-size: 0.77em;
    padding-left: 50px;
}
.c2d-list h6 {
    font-size: 0.75em;
    padding-left: 60px;
}
/*加载组件样式*/
.c2d-loading {
    opacity: 0.9;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.c2d-loading>*{
    flex-shrink: 0;
    font-size: 2em;
    color: #5B595B;
}
/*悬浮工具块样式*/
.c2d-tools {
    min-width: 20px;
    min-height: 20px;
    flex-direction: row;
    padding: 2px;
    gap: 3px;
}
.c2d-tools-button {
    padding: 3px;
    background-color: white;
    border-width: 0;
    border-radius: 3px;
}
.c2d-tools-button:hover {
    background-color: rgb(217, 236, 255);
}
.c2d-tools-button img {
    max-width: 15px;
}
.c2d-popover {
    min-width: 60px;
    min-height: 20px;
    flex-direction: column;
    padding: 10px;
    gap: 5px;
}
.c2d-popover>* {
    padding-bottom: 5px;
    width: 100%;
    border-bottom: 1px solid #EBEEF5;
    display: inline-flex;
    flex-direction: row;
    gap: 5px;
}
.c2d-popover>*:last-child {
    padding-bottom: 0;
    border-bottom-width: 0;
}
.c2d-popover img {
    max-width: 20px;
}
.c2d-tools, .c2d-popover {
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
    border: 1px solid #DCDFE6;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}
.c2d-doc pre {
    background-color: #4f5156;
    border-radius: 5px;
    color: #C0C4CC;
    position: relative;
}
.c2d-doc pre code {
    word-wrap: break-word;
    word-break: break-all;
    display: block;
    overflow-x: auto;
    padding: 55px 15px 20px 15px;
}
.c2d-doc pre code[class]:before {
    content: attr(class);
    display: block;
    position: absolute;
    border-radius: 5px 5px 0 0;
    padding: 10px 15px;
    left: 0;
    top: 0;
    right: 0;
    font-size: 0.9em;
    background-color: #323336;
    border-bottom: 1px solid #C0C4CC;
}
